package scan.pojo;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

@Component
public class Person2 {
    public Person2()
    {
        this.name="Stephanie";
    }
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void sayHello()
    {
        System.out.println("Hello "+name+"!");
    }
}
